package com.sun.showcase.client.query.mall;

import com.sun.showcase.client.domain.mall.Classify;
import com.sun.showcase.pojo.SearchModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ClassifyQuery extends SearchModel<Classify> implements Serializable {
    
  private static final long serialVersionUID = 3148176768559230877L;
    

	  /**
     * 主键ID       db_column: id 
     */	
	private String id;
	  /**
     * 类别名称       db_column: item_name
     */
	private String itemName;
	  /**
     * 父节点编码       db_column: parent_id
     */
	private String parentId;
	  /**
     * 父节点名称       db_column: parent_name
     */
	private String parentName;
	  /**
     * 排序号       db_column: order_num
     */
	private Integer orderNum;
	  /**
     * 图片地址       db_column: classify_picture_path
     */
	private String classifyPicturePath;
	  /**
     * 备注       db_column: remark
     */
	private String remark;
	  /**
     * 有效状态(默认为1 有效 0 无效）       db_column: active_flag
     */
	private String activeFlag;
	  /**
     * 创建人ID       db_column: create_by
     */
	private String createBy;
	  /**
     * 创建人       db_column: create_by_name
     */
	private String createByName;
	  /**
     * 创建时间       db_column: create_date
     */
	private java.util.Date createDate;
	  /**
     * 修改人ID       db_column: modified_by
     */
	private String modifiedBy;
	  /**
     * 修改人       db_column: modified_by_name
     */
	private String modifiedByName;
	  /**
     * 修改时间       db_column: modified_date
     */
	private java.util.Date modifiedDate;
	/**
	 * 封装修改时的where条件  key为数据库字段值  value为条件值
	 * */
	private Map<String,Object> searchMap = new HashMap<String,Object>();
	/**
	 * 数据表主键id的数组
	 * */
	private String ids[];

	private String queryLevel;

	private boolean hasChildren;

	private List<ClassifyQuery> children;

	private Integer level;

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public List<ClassifyQuery> getChildren() {
		return children;
	}

	public void setChildren(List<ClassifyQuery> children) {
		this.children = children;
	}

	public boolean isHasChildren() {
		return hasChildren;
	}

	public void setHasChildren(boolean hasChildren) {
		this.hasChildren = hasChildren;
	}

	public String getQueryLevel() {
		return queryLevel;
	}

	public void setQueryLevel(String queryLevel) {
		this.queryLevel = queryLevel;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getItemName() {
		return this.itemName;
	}

	public void setItemName(String value) {
		this.itemName = value;
	}

	public String getParentId() {
		return this.parentId;
	}

	public void setParentId(String value) {
		this.parentId = value;
	}

	public String getParentName() {
		return this.parentName;
	}

	public void setParentName(String value) {
		this.parentName = value;
	}

	public Integer getOrderNum() {
		return this.orderNum;
	}

	public void setOrderNum(Integer value) {
		this.orderNum = value;
	}

	public String getClassifyPicturePath() {
		return this.classifyPicturePath;
	}

	public void setClassifyPicturePath(String value) {
		this.classifyPicturePath = value;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String value) {
		this.remark = value;
	}

	public String getActiveFlag() {
		return this.activeFlag;
	}

	public void setActiveFlag(String value) {
		this.activeFlag = value;
	}

	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String value) {
		this.createBy = value;
	}

	public String getCreateByName() {
		return this.createByName;
	}

	public void setCreateByName(String value) {
		this.createByName = value;
	}

	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}

	public String getModifiedBy() {
		return this.modifiedBy;
	}

	public void setModifiedBy(String value) {
		this.modifiedBy = value;
	}

	public String getModifiedByName() {
		return this.modifiedByName;
	}

	public void setModifiedByName(String value) {
		this.modifiedByName = value;
	}

	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}

	public Map<String, Object> getSearchMap() {
		return searchMap;
	}

	public void setSearchMap(Map<String, Object> searchMap) {
		this.searchMap = searchMap;
	}

	public String[] getIds() {
		return ids;
	}

	public void setIds(String[] ids) {
		this.ids = ids;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
	}
	
}

